-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BC-7561 - separate job for failed batch deletion requests #5448
Conversation
this commit changes failed deletion and counted pending requests to also be older than configured threshold
add new config var for when pending or failed should be no longer processed
979f793
to
ef53fad
Compare
a6bef9f
to
ee088b5
Compare
ceaa2f4
to
b9b6c83
Compare
b9b6c83
to
8b8e624
Compare
165f606
to
51ea68e
Compare
apps/server/src/modules/deletion-console/deletion-client/deletion.client.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/deletion/api/controller/api-test/deletion-request-create.api.spec.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/deletion/repo/scope/deletion-request-scope.spec.ts
Outdated
Show resolved
Hide resolved
@@ -26,9 +26,9 @@ export class DeletionClient { | |||
} | |||
} | |||
|
|||
public async executeDeletions(limit?: number): Promise<void> { | |||
public async executeDeletions(limit?: number, runFailed?: boolean): Promise<void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to use an options object type instead of sereate parameters? Would better show the independence of limit
and runFailed
IMHO. (maybe also a matter of taste)
avoid loading node by checking how many requests are already currently in progress
372ac41
to
f0aaf59
Compare
f0aaf59
to
4ebe5f8
Compare
apps/server/src/modules/deletion/domain/service/deletion-request.service.ts
Show resolved
Hide resolved
}; | ||
const expectedQueryNoDates = { | ||
status: { | ||
$in: [StatusModel.FAILED, StatusModel.PENDING], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about filter for updatedAt: null
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have the case tested at line 126
Quality Gate passedIssues Measures |
Description
Links to Tickets or other pull requests
BC-7561
hpi-schul-cloud/dof_app_deploy#1095
Approval for review
generate-client:server
was executed in vue frontend and changes were tested and put in a PR with the same branch name.